<%@page import="dao.CommentDao"%>
<%@page import="dao.OrderDao"%>
<%@page import="entity.Admin"%>
<%@page import="service.OrderService"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../../include/base.jsp" %>
<%		
		//这便是弄新订单动态的
		Admin admin = (Admin)session.getAttribute("admin");
		OrderDao orderDao = new OrderDao();
		int newOrderSize = orderDao.countByOrderTime(admin.getOrderaccesstime());
		request.getSession().setAttribute("newordersize", newOrderSize);
		//这边是弄新评论动态的
		CommentDao commentDao = new CommentDao();
		int newComment = commentDao.countByCommentTime(admin.getCommentaccesstime());
		request.getSession().setAttribute("newcomment", newComment);
%>
<div class="span3 affix">
			      <div class="accordion" id="accordion2" style="width:260px;background-color:#fff;border-radius: 5px;overflow: hidden;">

					  <div class="accordion-group" style="margin-bottom:0px;">
					    <div class="accordion-heading bg" style="">
					      <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapseOne" style="color:#fff;font-weight:bold;">
					        <i class="icon-th-large icon-white"></i>商品系统
					      </a>
					    </div>
					    <div id="collapseOne" class="accordion-body collapse">
					      <div class="accordion-inner" style="padding-top:0px;padding-left:5px;padding-bottom: 0px;">
					        <ul id="" class="" style="margin-left:0px;">
					        	<a href="productlist.jspx" title="" class="mya"><span class="label label-important">1</span>商品管理</a>
					        	<a href="typelist.jspx" title="" class="mya"><span class="label label-warning">2</span>类别管理</a>
					        	<a href="publishlist.jspx" title="" class="mya"><span class="label label-success">3</span>出版社管理</a>
					        </ul>
					      </div>
					    </div>
					  </div>


					  

					    <div class="accordion-group" style="margin-bottom:0px;">
					    <div class="accordion-heading bg" style="">
					      <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse3" style="color:#fff;font-weight:bold;">
					        <i class="icon-shopping-cart icon-white"></i>订单系统
					        <c:if test="${not empty newordersize }">
					        	<c:if test="${newordersize != 0}">
						        	<span class="label label-success" style="margin-left:15px;">+${newordersize }</span>
						        </c:if>
					        </c:if>
					        
					        
					        
					      </a>
					    </div>
					    <div id="collapse3" class="accordion-body collapse in">
					      <div class="accordion-inner" style="padding-top:0px;padding-left:5px;padding-bottom: 0px;">
					        <ul id="" class="" style="margin-left:0px;">
					        	<a href="neworderlist.jspx" title="" class="mya"><span class="label label-important">1</span>新订单列表
					        		<c:if test="${not empty newordersize }">
							        	<c:if test="${newordersize != 0}">
								        	<span class="label label-success" style="margin-left:15px;">+${newordersize }</span>
								        </c:if>
							        </c:if>
					        	</a>
					        	<a href="adminorderlist.jspx" title="" class="mya"><span class="label label-warning">2</span>订单列表</a>
					        </ul>
					      </div>
					    </div>
					  </div>


					  
					  <div class="accordion-group" style="margin-bottom:0px;">
					    <div class="accordion-heading bg" style="">
					      <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse5" style="color:#fff;font-weight:bold;">
					        <i class="icon-comment icon-white"></i>评论系统
					        <c:if test="${not empty newcomment }">
					        	<c:if test="${newcomment != 0}">
						        	<span class="label label-success" style="margin-left:15px;">+${newcomment }</span>
						        </c:if>
					        </c:if>
					      </a>
					    </div>
					    <div id="collapse5" class="accordion-body collapse in">
					      <div class="accordion-inner" style="padding-top:0px;padding-left:5px;padding-bottom: 0px;">
					        <ul id="" class="" style="margin-left:0px;">
					        	<a href="newcommentlist.jspx" title="" class="mya"><span class="label label-important">1</span>新评论
					        		<c:if test="${not empty newcomment }">
							        	<c:if test="${newcomment != 0}">
								        	<span class="label label-success" style="margin-left:15px;">+${newcomment }</span>
								        </c:if>
							        </c:if>
					        	</a>
					        	<a href="admincommentlist.jspx" title="" class="mya"><span class="label label-warning">2</span>所有评论</a>
					        </ul>
					      </div>
					    </div>
					  </div>

					  <div class="accordion-group" style="margin-bottom:0px;">
					    <div class="accordion-heading bg" style="">
					      <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse6" style="color:#fff;font-weight:bold;">
					        <i class="icon-user icon-white"></i>用户系统
					      </a>
					    </div>
					    <div id="collapse6" class="accordion-body collapse in">
					      <div class="accordion-inner" style="padding-top:0px;padding-left:5px;padding-bottom: 0px;">
					        <ul id="" class="" style="margin-left:0px;">
					        	<a href="userlist.jspx" class="mya"><span class="label label-important">1</span>用户列表</a>
					        	
					        </ul>
					      </div>
					    </div>
					  </div>

					  <div class="accordion-group " style="margin-bottom:0px;">
					    <div class="accordion-heading bg" style="">
					      <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse7" style="color:#fff;font-weight:bold;">
					        <i class="icon-comment icon-white"></i>咨询信息
					      </a>
					    </div>
					    <div id="collapse7" class="accordion-body collapse in">
					      <div class="accordion-inner" style="padding-top:0px;padding-left:5px;padding-bottom: 0px;">
					        <ul id="" class="" style="margin-left:0px;">
					        	<a href="" title="" class="mya"><span class="label label-important">1</span>添加类别</a>
					        	<a href="" title="" class="mya"><span class="label label-warning">2</span>类别列表</a>
					        </ul>
					      </div>
					    </div>
					  </div>

					  <div class="accordion-group" style="margin-bottom:0px;">
					    <div class="accordion-heading bg" style="">
					      <a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion2" href="#collapse8" style="color:#fff;font-weight:bold;">
					        <i class="icon-leaf icon-white"></i>统计报表
					      </a>
					    </div>
					    <div id="collapse8" class="accordion-body collapse in">
					      <div class="accordion-inner" style="padding-top:0px;padding-left:5px;padding-bottom: 0px;">
					        <ul id="" class="" style="margin-left:0px;">
					        	<a href="" title="" class="mya"><span class="label label-important">1</span>添加类别</a>
					        	<a href="" title="" class="mya"><span class="label label-warning">2</span>类别列表</a>
					        </ul>
					      </div>
					    </div>
					  </div>

					</div>


			    </div>